<template>
  <top-nav>
    <div class="orderNav">
      <div class="orderSearch">
        <p><i class="fas fa-search"/>&nbsp;搜索外卖/跑腿/电商订单</p>
      </div>
      <div class="orderMessage">
        <span>99+</span>
        <p><i class="far fa-comment-dots" /></p>
      </div>
    </div>
  </top-nav>
  <bottom-nav></bottom-nav>
</template>

<script>
import TopNav from "@/components/TopNav.vue";
import BottomNav from "@/components/BottomNav.vue";

export default {
  name:"OrderView",
  components: {
    TopNav,
    BottomNav
  },
}
</script>

<style scoped>
.orderNav{
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 6vw;
  line-height: 6vw;
}
.orderNav .orderSearch{
  margin-left: 4vw;
  width: 80%;
  background-color: white;
}
.orderNav .orderSearch p{
  /* 取消文本选中 */
  user-select: none;
  border-radius: 2px;
  padding-left: 2vw;
  font-size: 2vw;
  color: gray;
}
.orderNav .orderMessage{
  position: relative;
  margin-right: 6vw;
}

.orderNav .orderMessage span{
  width: 4vw;
  height: 3vw;
  line-height: 3vw;
  border-radius: 40%;
  background-color: red;
  right: -2.5vw;
  position: absolute;
  text-align: center;
  font-size: 2vw;
}
</style>